package com.huawei.springboot2023.business.user.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZhouChengYang
 * @since 2023-04-05
 */
@Getter
@Setter
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id，对用户的唯一标识")
    @TableId(value = "userId", type = IdType.NONE)
    private String userId;

    @ApiModelProperty("用户姓名")
    private String userName;

    @ApiModelProperty("账号密码，使用md5加密过的密文")
    private String pwd;

    @ApiModelProperty("性别，0为男性，1为女性")
    private Integer sex;

    @ApiModelProperty("0表示未锁定，1表示账号被锁定")
    private Integer isLock;

    @ApiModelProperty("用户输入密码错误次数")
    private Integer pwdErrorNum;

    @ApiModelProperty("插入时间")
    @TableField(fill = FieldFill.INSERT)
    private Date insertTime;

    @ApiModelProperty(" 上次修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(" 逻辑删除标识，0代表未被删除，1代表被删除")
    @TableLogic
    private Integer isDelete;


}
